/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package pe.com.minam.beans;

import com.fasterxml.jackson.annotation.JsonIgnore;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 *
 * @author Willian
 */
@Entity
@Table(name = "INFO_AIRE_LUGAR")
public class InfoLugar implements Serializable {
    private static final long serialVersionUID = 1L;
    
    private Integer id_info;
    private Lugar lugar;
    private String fecha;
    private String hora;
    private String mp2_5;
    private String mp10;
    private String so2;
    private String no2;
    private String co;
    private String o3;

    /**
     * @return the id_info
     */
    @Id
    @Column(name = "ID_INFO")
    @GeneratedValue(strategy = GenerationType.AUTO, generator = "NSECUENCIA")
    @SequenceGenerator(name = "NSECUENCIA", sequenceName = "NSECUENCIA")
    public Integer getId_info() {
        return id_info;
    }

    /**
     * @param id_info the id_info to set
     */
    public void setId_info(Integer id_info) {
        this.id_info = id_info;
    }

    /**
     * @return the fecha
     */
    @Column(name="FECHA")
    public String getFecha() {
        return fecha;
    }

    /**
     * @param fecha the fecha to set
     */
    public void setFecha(String fecha) {
        this.fecha = fecha;
    }

    /**
     * @return the hora
     */
    @Column(name="HORA")
    public String getHora() {
        return hora;
    }

    /**
     * @param hora the hora to set
     */
    public void setHora(String hora) {
        this.hora = hora;
    }

    /**
     * @return the mp2_5
     */
    @Column(name="MP2_5")
    public String getMp2_5() {
        return mp2_5;
    }

    /**
     * @param mp2_5 the mp2_5 to set
     */
    public void setMp2_5(String mp2_5) {
        this.mp2_5 = mp2_5;
    }

    /**
     * @return the mp10
     */
    @Column(name="MP10")
    public String getMp10() {
        return mp10;
    }

    /**
     * @param mp10 the mp10 to set
     */
    public void setMp10(String mp10) {
        this.mp10 = mp10;
    }

    /**
     * @return the so2
     */
    @Column(name="SO2")
    public String getSo2() {
        return so2;
    }

    /**
     * @param so2 the so2 to set
     */
    public void setSo2(String so2) {
        this.so2 = so2;
    }

    /**
     * @return the no2
     */
    @Column(name="NO2")
    public String getNo2() {
        return no2;
    }

    /**
     * @param no2 the no2 to set
     */
    public void setNo2(String no2) {
        this.no2 = no2;
    }

    /**
     * @return the co
     */
    @Column(name="CO")
    public String getCo() {
        return co;
    }

    /**
     * @param co the co to set
     */
    public void setCo(String co) {
        this.co = co;
    }

    /**
     * @return the o3
     */
    @Column(name="O3")
    public String getO3() {
        return o3;
    }

    /**
     * @param o3 the o3 to set
     */
    public void setO3(String o3) {
        this.o3 = o3;
    }

    /**
     * @return the lugar
     */
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "ID_LUGAR")
    @JsonIgnore
    public Lugar getLugar() {
        return lugar;
    }

    /**
     * @param lugar the lugar to set
     */
    public void setLugar(Lugar lugar) {
        this.lugar = lugar;
    }
}